package com.msmall.community.common.service;

import com.msmall.base.service.BaseManager;
import com.msmall.community.common.model.Abuse;

/**
 * 
 * @author alvin
 * @description 用户投诉功能
 */
public interface AbuseManager extends BaseManager<Abuse, Long>{

	/**
	 * 
	 * @param abuse
	 * @description 用户发起投诉
	 */
	public void report(Abuse abuse);
	
	public void report(short abuseType, Long entity, Long reporter, String reason, String url);
	
	/**
	 * 
	 * @param abuse
	 * @description 审核投诉是否有效
	 */
	public void audit(Abuse abuse);
	
	/**
	 * 
	 * @param abuseId 投诉ID
	 * @param audit 是否有效的投诉
	 * @param auditor 审核人
	 * @param comments 审核备注
	 */
	public void audit(Long abuseId, Short audit, Long auditor, String comments) throws Exception;
}
